import express, { Router, Request, Response } from "express";
const app = express();
const PORT = 4000;
class UserController {
    public getAll(req: Request, res: Response) {
        return res.status(200).json({
            message: "成功获取所有⽤户",
        });
    }
}
const userRouter = Router();
const userCtrl = new UserController();
userRouter.get("/", userCtrl.getAll);
app.use("/api/users", userRouter);
app.listen(PORT, () => {
    console.log(` ⚡[server]: Server is running at http://localhost:${PORT}`);
});

